-- GENERATED SPELL FOR [Dark Iron Marksman] --


function spell0_8338(pUnit, Event) --@Marksman Hit,n/a--
pUnit:FullCastSpellOnTarget(12198,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8338', 2000, 1)
end

function Sorts_8338(pUnit, Event)
local choix_sorts_8338 = math.random(0, 0)
if choix_sorts_8338 == 0 then
pUnit:RegisterEvent('spell0_8338', 1, 1)
end
end

function mob8338_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8338', math.random(1500, 3000), 1)
end

function mob8338_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8338_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8338_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8338, 1, 'mob8338_Action')
RegisterUnitEvent(8338, 2, 'mob8338_Leave')
RegisterUnitEvent(8338, 3, 'mob8338_Kill')
RegisterUnitEvent(8338, 4, 'mob8338_Die')
